from django.conf.urls import url
from . import views


urlpatterns = [
    url(r'^api/v1.0/areas$', views.AreasView.as_view()),
    url(r'^api/v1.0/houses$', views.HousesView.as_view()),
    url(r'^myhouse/$', views.LoadMyHouseView.as_view(), name='myhouse'),
    url(r'^newhouse/$', views.LoadNewHouseView.as_view(), name='newhouse'),
    url(r'^api/v1.0/houses/(?P<house_id>\d+)/images$', views.UploadHouseImageView.as_view()),
    url(r'^api/v1.0/user/houses$', views.MyHouseView.as_view()),
    url(r'^api/v1.0/houses/index$', views.HomeRecommendHousesView.as_view()),
]